import instance from "../base";

export const userLogin = (username, password) => {
    return instance.post("/login", {
        params:{
            username : username,
            password: password
        },
        headers: {
            "Content-Type": "application/json"
        }
    });
}


export const userRegister = (username, password) =>{
    return instance.post("/register", {
        params:{
            username : username,
            password: password
        },
        headers: {
            "Content-Type": "application/json"
        }
    });
}